%p
  %h= @blog.title

%p
  %h
    / TODO: Wiki syntax
    %pre= @blog.description

%table
  %tr
  - for article in @blog.articles
    %tr
      %td= article.title
      %td= article.contents
      %td= link_to 'Покажи', article
      %td= link_to 'Редактирай', edit_article_path(article)
      %td= link_to 'Изтрий', article, :method => :delete, :confirm => 'Are you sure?'

= link_to 'Редактирай', edit_blog_path(@blog)
|
= link_to 'Изтрий', @blog, :confirm => 'Are you sure?', :method => :delete
|
= link_to 'Назад', blogs_path
